const http = uni.$u.http


//用户登录
export function userLoginApi(params){
	return http.post('/api/User/UserLogin',params)
}
//普通用户注册
export function createdOrdinaryUserApi(params){
	return http.post('/api/User/CreatedOrdinary',params)
}
//微信登录
export function wxLoginApi(params){
	return http.get('/api/User/UserWXLogin?code='+params)
}
//查询当前openid是否绑定账号
export function isOpneidApi(params){
	return http.get('/api/User/UserIOpenid?code='+params)
}
//发送邮箱验证码
export function emailVerificationCodeApi(params){
	return http.get('/api/User/EmailVerificationCode?email='+params.email+'&key='+params.key)
}
//邮箱验证码重置密码
export function emailRetrievePasswdApi(params){
	return http.post('/api/User/EmailRetrievePasswd',params)
}
//修改头像
export function updatePhotoApi(params){
	return http.get('/api/User/UpdatePhoto?photo=' + params)
}
//修改密码
export function updateOrdinaryPwdApi(params){
	return http.post('/api/User/UpdateOrdinaryPwd',params)
}
//绑定微信
export function bindWeixinApi(params){
	return http.get('/api/User/BindWeixin?code='+params)
}
//解除绑定微信
export function relieveWeixinApi(){
	return http.get('/api/User/RelieveWeixin')
}
//修改用户资料
export function leadingUpdateApi(params){
	return http.post('/api/User/LeadingUpdate',params)
}
//查询个人用户资料
export function getUserInfoApi(){
	return http.get('/api/User/GetUserInfo')
}